<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Chrome</title>
        <link rel="stylesheet" type="text/css" href="bootstrap.min.css">
        <link rel="stylesheet" type="text/css" href="bootstrap-theme.min.css">
        <link rel="stylesheet" type="text/css" href="style.css">
    </head>
    <body>
        <div class="container">
            <div class="row">
                <div class="col-md-10">
                    <ul id="mathTabs" class="nav nav-tabs" data-tabs="tabs">
                        <li class="match active" matchId="1"><a href="#match1" data-toggle="tab">Match 1</a></li>
                        <li><button id="btnAddTab" class="btn btn-success btn-xs tab-btn">Add</button></li>
                        <li><button id="btnRemoveTab" class="btn btn-danger btn-xs tab-btn">Remove</button></li>
                    </ul>
                </div>
                <div class="col-md-2">
                    <div class="form-group">
                        <div class="input-group input-group-sm">
                            <input id="txtUnitPerBet" type="text" class="form-control">
                            <span class="input-group-btn">
                                <button id="btnSetUnitPerBet" class="btn btn-success">Set Unit</button>
                            </span>
                        </div><!-- /input-group -->
                    </div>
                </div>
            </div>
            <div id="matchTabContent" class="tab-content">
                <div class="tab-pane active" id="match1">
                    <div class="row">
                        <div class="col-xs-6">
                            <div class="input-group form-group">
                                <span id="lblTeamOneName1" class="input-group-addon">Team 1</span>
                                <input type="text" id="txtTeamOneName1" class="form-control input-sm"/>
                            </div>
                        </div>
                        <div class="col-xs-6">
                            <div class="input-group form-group">
                                <span id="lblTeamTwoName1" class="input-group-addon">Team 2</span>
                                <input type="text" id="txtTeamTwoName1" class="form-control input-sm"/>
                            </div>
                        </div>
                        <div class="col-xs-6">
                            <div class="input-group form-group">
                                <span id="lblAName1" class="input-group-addon mst-site">Main Site</span>
                                <input type="text" id="txtAName1" class="form-control input-sm"/>
                            </div>
                        </div>
                        <div class="col-xs-6">
                            <div class="input-group form-group">
                                <span id="lblBName1" class="input-group-addon asc-site">Assistant Site</span>
                                <input type="text" id="txtBName1" class="form-control input-sm"/>
                            </div>
                        </div>
                        <div id="pair1" class="col-xs-12 pair" pairId="1">
                            <div class="panel panel-default">
                                <div class="panel-heading">
                                    <h4 id="pairName1" class="panel-title"><input type="checkbox"> Match</h4>
                                </div>
                                <div class="panel-body">
                                    <div class="col-xs-6">
                                        <div class="input-group form-group">
                                            <span id="lblAValueOne1" class="input-group-addon mst-site">Team 1 Win</span>
                                            <input type="text" id="txtAValueOne1" class="form-control input-sm"/>
                                        </div>
                                        <div class="input-group form-group">
                                            <span id="lblAValueTwo1" class="input-group-addon mst-site">Team 2 Win</span>
                                            <input type="text" id="txtAValueTwo1" class="form-control input-sm"/>
                                        </div>
                                    </div>
                                    <div class="col-xs-6">
                                        <div class="input-group form-group">
                                            <span id="lblBValueOne1" class="input-group-addon asc-site">Team 1 Win</span>
                                            <input type="text" id="txtBValueOne1" class="form-control input-sm"/>
                                        </div>
                                        <div class="input-group form-group">
                                            <span id="lblBValueTwo1" class="input-group-addon asc-site">Team 2 Win</span>
                                            <input type="text" id="txtBValueTwo1" class="form-control input-sm"/>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-xs-6">
                    <button id="btnTest" class="btn btn-primary btn-sm">Test</button>
                    <button id="btnStart" class="btn btn-success btn-sm">Start</button>
                    <button id="btnClear" class="btn btn-warning btn-sm">Clear</button>
                    <button id="btnStop" class="btn btn-danger btn-sm">Stop</button>
                </div>
                <div class="col-xs-4">
                    <div class="col-xs-8">
                        <div class="form-group">
                            <div class="input-group input-group-sm">
                                <input id="txtAddPairName" type="text" class="form-control">
                                <span class="input-group-btn">
                                    <button id="btnAddPair" class="btn btn-success">Add</button>
                                </span>
                            </div><!-- /input-group -->
                        </div>
                    </div>
                    <div class="col-xs-4">
                        <div class="input-group input-group-sm">
                            <button id="btnRemovePair" class="btn btn-danger">Remove</button>
                        </div>
                    </div>
                </div>
                <div class="col-xs-2 text-right">
                    <a id="btnSaveRecord" class="btn btn-default btn-sm" download="" href="#" >Save</a>
                </div>

            </div>
            <div id="log" class="row">
                <div id="logMatch1">
                    <div class="col-xs-4">
                        <ul id="message1" class="alert alert-danger small log">
                        </ul>
                    </div>
                    <div class="col-xs-4">
                        <ul id="information1" class="alert alert-info small log">
                        </ul>
                    </div>
                    <div class="col-xs-4">
                        <ul id="success1" class="alert alert-success small log">
                        </ul>
                    </div>
                </div>
            </div>
            <div class="hidden">
                <div id="tabTemplate">
                    <li class="match" matchId="[MATCH_NUMBER]"><a href="#match[MATCH_NUMBER]" data-toggle="tab">Match [MATCH_NUMBER]</a></li>
                </div>
                <div id="matchTemplate">
                    <div class="tab-pane" id="match[MATCH_NUMBER]">
                        <div class="row">
                            <div class="col-xs-6">
                                <div class="input-group form-group">
                                    <span id="lblTeamOneName[MATCH_NUMBER]" class="input-group-addon">Team 1</span>
                                    <input type="text" id="txtTeamOneName[MATCH_NUMBER]" class="form-control input-sm"/>
                                </div>
                            </div>
                            <div class="col-xs-6">
                                <div class="input-group form-group">
                                    <span id="lblTeamTwoName[MATCH_NUMBER]" class="input-group-addon">Team 2</span>
                                    <input type="text" id="txtTeamTwoName[MATCH_NUMBER]" class="form-control input-sm"/>
                                </div>
                            </div>
                            <div class="col-xs-6">
                                <div class="input-group form-group">
                                    <span id="lblAName[MATCH_NUMBER]" class="input-group-addon mst-site">Main Site</span>
                                    <input type="text" id="txtAName[MATCH_NUMBER]" class="form-control input-sm"/>
                                </div>
                            </div>
                            <div class="col-xs-6">
                                <div class="input-group form-group">
                                    <span id="lblBName[MATCH_NUMBER]" class="input-group-addon asc-site">Assistant Site</span>
                                    <input type="text" id="txtBName[MATCH_NUMBER]" class="form-control input-sm"/>
                                </div>
                            </div>
                            <div id="pair[PAIR_ID]" class="col-xs-12 pair" pairId="[PAIR_ID]">
                                <div class="panel panel-default">
                                    <div class="panel-heading">
                                        <h4 id="pairName[PAIR_ID]" class="panel-title"><input type="checkbox"> Match</h4>
                                    </div>
                                    <div class="panel-body">
                                        <div class="col-xs-6">
                                            <div class="input-group form-group">
                                                <span id="lblAValueOne[PAIR_ID]" class="input-group-addon mst-site">Team 1 Win</span>
                                                <input type="text" id="txtAValueOne[PAIR_ID]" class="form-control input-sm"/>
                                            </div>
                                            <div class="input-group form-group">
                                                <span id="lblAValueTwo[PAIR_ID]" class="input-group-addon mst-site">Team 2 Win</span>
                                                <input type="text" id="txtAValueTwo[PAIR_ID]" class="form-control input-sm"/>
                                            </div>
                                        </div>
                                        <div class="col-xs-6">
                                            <div class="input-group form-group">
                                                <span id="lblBValueOne[PAIR_ID]" class="input-group-addon asc-site">Team 1 Win</span>
                                                <input type="text" id="txtBValueOne[PAIR_ID]" class="form-control input-sm"/>
                                            </div>
                                            <div class="input-group form-group">
                                                <span id="lblBValueTwo[PAIR_ID]" class="input-group-addon asc-site">Team 2 Win</span>
                                                <input type="text" id="txtBValueTwo[PAIR_ID]" class="form-control input-sm"/>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div id="pairTemplate">
                    <div id="pair[PAIR_ID]" class="col-xs-12 pair" pairId="[PAIR_ID]">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <h4 id="pairName[PAIR_ID]" class="panel-title"><input type="checkbox"> [PAIR_NAME]</h4>
                            </div>
                            <div class="panel-body">
                                <div class="col-xs-6">
                                    <div class="input-group form-group">
                                        <span id="lblAValueOne[PAIR_ID]" class="input-group-addon mst-site">Team 1 Win</span>
                                        <input type="text" id="txtAValueOne[PAIR_ID]" class="form-control input-sm"/>
                                    </div>
                                    <div class="input-group form-group">
                                        <span id="lblAValueTwo[PAIR_ID]" class="input-group-addon mst-site">Team 2 Win</span>
                                        <input type="text" id="txtAValueTwo[PAIR_ID]" class="form-control input-sm"/>
                                    </div>
                                </div>
                                <div class="col-xs-6">
                                    <div class="input-group form-group">
                                        <span id="lblBValueOne[PAIR_ID]" class="input-group-addon asc-site">Team 1 Win</span>
                                        <input type="text" id="txtBValueOne[PAIR_ID]" class="form-control input-sm"/>
                                    </div>
                                    <div class="input-group form-group">
                                        <span id="lblBValueTwo[PAIR_ID]" class="input-group-addon asc-site">Team 2 Win</span>
                                        <input type="text" id="txtBValueTwo[PAIR_ID]" class="form-control input-sm"/>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div id="logTemplate">
                    <div id="logMatch[MATCH_NUMBER]" style="display: none">
                        <div class="col-xs-4">
                            <ul id="message[MATCH_NUMBER]" class="alert alert-danger small log">
                            </ul>
                        </div>
                        <div class="col-xs-4">
                            <ul id="information[MATCH_NUMBER]" class="alert alert-info small log">
                            </ul>
                        </div>
                        <div class="col-xs-4">
                            <ul id="success[MATCH_NUMBER]" class="alert alert-success small log">
                            </ul>
                        </div>
                    </div>
                </div>
                <div id="hiddenLog"></div>
            </div>
        </div>
        <script src="jquery-1.11.0.min.js"></script>
        <script src="common.js"></script>
        <script src="window.js"></script>
        <script src="bootstrap.min.js"></script>
    </body>
</html>